home *** CD-ROM | disk | FTP | other *** search
- Path: news.wasatch.com!news
- From: rdemanow@wasatch.com (Richard Demanowski)
- Newsgroups: comp.lang.c
- Subject: Re: "getchar()" vs "getc()"
- Date: 20 Jan 1996 00:31:14 GMT
- Organization: wasatch.com
- Message-ID: <4dpd4i$e4j@twin.wasatch.com>
- References: <4d8gvd$9kd@wumpus.cc.uow.edu.au>
- NNTP-Posting-Host: port23.wasatch.com
- X-Newsreader: WinVN 0.99.5
-
- In article <4d8gvd$9kd@wumpus.cc.uow.edu.au>, tp86@wumpus.cc.uow.edu.au
- says...
- >
- >Hello to all.
- > I got something here to ask you guys. I would like to know what
- different
- >between "getchar()" and "getc() and the different between "putchar()" and
- >"putc()" ????
- >
-
- In all of the implementations that I have seen, (I am researching a way to
- make a cetch() function without conio.h ...) they are pretty much the same.
-
- On all of the compilers I own, getchar() is just a macro defining the
- following:
-
- #define getchar() getc(sdtin)
-
- They do exactly the same thing. The only difference is that getchar() is
- already tied to the stdin stream instead of a user-defined stream.
-
- RichD
- --
- rdemanow@wasatch.com |I am lost. I have gone to look for
- |myself.
- press any key to continue ... |If I should return before I get back,
- press any other key to quit ...|please ask me to wait here.
-
-